cxStr cxJsonDump(cxJson json) { CX_ASSERT_THIS(json, cxJson); cxChars jsonText = json_dumps(CX_JSON_PTR(this), JSON_ENCODE_ANY); return cxStrAttachMem(jsonText, (cxInt)strlen(jsonText)); }
cxTexture cxTextureMTFGet(cxAny pthis,cxInt idx) { CX_ASSERT_THIS(pthis, cxTextureMTF); CX_ASSERT(idx >= 0 && idx < this->header.count, "idx range"); return cxHashGet(this->caches, cxHashIntKey(idx)); }
static json_t *cxJsonGetJson(cxJson json,cxConstChars key) { CX_ASSERT_THIS(json, cxJson); CX_ASSERT(cxConstCharsOK(key), "key error"); return jsonGetJson(CX_JSON_PTR(this), key); }
void cxStackPop(cxAny pstack) { CX_ASSERT_THIS(pstack, cxStack); CX_RETURN(cxArrayLength(this->array) == 0); cxArrayRemoveLast(this->array); }
cxAny cxStackObject(cxAny pstack,cxInt index) { CX_ASSERT_THIS(pstack, cxStack); return cxArrayAtIndex(this->array, index); }
cxInt cxStackLength(cxAny pstack) { CX_ASSERT_THIS(pstack, cxStack); return cxArrayLength(this->array); }
cxAny cxStackTop(cxAny pstack) { CX_ASSERT_THIS(pstack, cxStack); return cxArrayLast(this->array); }
void cxStackPush(cxAny pstack,cxAny any) { CX_ASSERT_THIS(pstack, cxStack); cxArrayAppend(this->array, any); }
void cxStackClear(cxAny pstack) { CX_ASSERT_THIS(pstack, cxStack); cxArrayClear(this->array); }
void cxMoveSetPos(cxAny pav,cxVec2f pos) { CX_ASSERT_THIS(pav, cxMove); this->to = pos; }