cxTypes cxHashRootReadNumber(cxHashRoot root,cxConstChars temp,xmlTextReaderPtr reader) { cxTypes types = cxNumberTypesCreate(); cxAny obj = cxReadValues(root, temp, reader); if(!cxObjectIsType(obj, cxNumberTypeName)){ return NULL; } CX_RETAIN_SWAP(types->any, obj); return types; }
static cxInt cxDataString(lua_State *L) { cxConstChars url = luaL_checkstring(L, 2); cxTypes types = cxEngineTypes(url); if(types == NULL || !cxObjectIsType(types->any, cxStringTypeName)){ lua_pushnil(L); }else{ CX_LUA_PUSH_OBJECT(types->any); } return 1; }