axmol/lua/cocos2dx_support/tolua_fix.h

32 lines
883 B
C
Raw Normal View History

2011-11-18 20:36:39 +08:00
#ifndef __TOLUA_FIX_H_
#define __TOLUA_FIX_H_
#include "tolua++.h"
#ifdef __cplusplus
extern "C"
{
#endif
#define TOLUA_REFID_PTR_MAPPING "tolua_refid_ptr_mapping"
#define TOLUA_REFID_TYPE_MAPPING "tolua_refid_type_mapping"
#define TOLUA_REFID_FUNC_MAPPING "tolua_refid_func_mapping"
2011-11-18 20:36:39 +08:00
TOLUA_API void tolua_prepare_ccobject_table(lua_State* L);
TOLUA_API int tolua_pushusertype_ccobject(lua_State* L, int uid, int* p_refid, void* ptr, const char* type);
TOLUA_API int tolua_remove_ccobject_by_refid(lua_State* L, int refid);
2011-11-18 20:36:39 +08:00
TOLUA_API int tolua_ref_function(lua_State* L, int lo, int def);
2011-11-18 20:36:39 +08:00
TOLUA_API void tolua_remove_function_by_refid(lua_State* L, int refid);
TOLUA_API int tolua_isfunction(lua_State* L, int lo, tolua_Error* err);
2011-12-08 00:30:46 +08:00
2011-12-17 11:18:33 +08:00
TOLUA_API void tolua_stack_dump(lua_State* L, const char* label);
2011-11-18 20:36:39 +08:00
#ifdef __cplusplus
} // extern "C"
#endif
2011-11-18 20:36:39 +08:00
#endif // __TOLUA_FIX_H_