/** @internal Compatibility wrapper for Lua 5.0 - 5.2 */
#if LUA_VERSION_NUM < 502
-#define lua_len(L, obj) \
+#define lua_rawlen(L, obj) \
lua_objlen((L), (obj))
#define register_lib(L, name, lib) \
luaL_openlib((L), (name), (lib), 0)
buf[0] = '\0';
}
lua_pushstring(L, buf);
- lua_rawseti(L, -2, lua_len(L, -2) + 1);
+ lua_rawseti(L, -2, lua_rawlen(L, -2) + 1);
lua_setfield(L, -2, "addr");
/* Hardware address. */
};
register_lib(L, "cache", lib);
- return 0;
+ return 1;
}
\ No newline at end of file