haproxy/include/proto/hlua_fcn.h
Thierry Fournier 9e7e3ea991 MINOR: lua: move common function
This patch moves the function hlua_checkudata which check that
an object contains the expected class_reference as metatable.
This function is commonly used by all the lua functions.
The function hlua_metatype is also moved.
2016-02-12 11:08:53 +01:00

8 lines
186 B
C

#ifndef _PROTO_HLUA_FCN_H
#define _PROTO_HLUA_FCN_H
void *hlua_checkudata(lua_State *L, int ud, int class_ref);
int hlua_fcn_reg_core_fcn(lua_State *L);
#endif /* _PROTO_HLUA_FCN_H */