2011-11-18 20:36:39 +08:00
|
|
|
|
|
|
|
#ifndef __TOLUA_FIX_H_
|
|
|
|
#define __TOLUA_FIX_H_
|
|
|
|
|
|
|
|
#include "tolua++.h"
|
|
|
|
|
2011-11-29 15:51:18 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
2011-12-08 15:44:49 +08:00
|
|
|
|
2011-11-29 15:51:18 +08:00
|
|
|
#define TOLUA_REFID_PTR_MAPPING "tolua_refid_ptr_mapping"
|
|
|
|
#define TOLUA_REFID_TYPE_MAPPING "tolua_refid_type_mapping"
|
|
|
|
|
2011-11-18 20:36:39 +08:00
|
|
|
TOLUA_API void tolua_prepare_ccobject_table(lua_State* L);
|
2012-01-08 21:03:16 +08:00
|
|
|
TOLUA_API int tolua_pushusertype_ccobject(lua_State* L,
|
2012-02-04 11:34:17 +08:00
|
|
|
int uid,
|
|
|
|
int* p_refid,
|
2012-01-08 21:03:16 +08:00
|
|
|
void* ptr,
|
|
|
|
const char* type);
|
2011-12-08 15:44:49 +08:00
|
|
|
TOLUA_API int tolua_remove_ccobject_by_refid(lua_State* L, int refid);
|
2011-11-29 15:51:18 +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-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
|
|
|
|
2011-11-29 15:51:18 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
2011-11-18 20:36:39 +08:00
|
|
|
|
|
|
|
#endif // __TOLUA_FIX_H_
|