Skip to content
Snippets Groups Projects
Commit 44bb2fde authored by neil's avatar neil
Browse files

Add a const to auxiliar_newclass so it'll stop screaming at me when we pass const things to it

git-svn-id: http://svn.net-core.org/repos/t-engine4@627 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8fe96805
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ int auxiliar_open(lua_State *L) {
* Creates a new class with given methods
* Methods whose names start with __ are passed directly to the metatable.
\*-------------------------------------------------------------------------*/
void auxiliar_newclass(lua_State *L, const char *classname, luaL_reg *func) {
void auxiliar_newclass(lua_State *L, const char *classname, const luaL_reg *func) {
luaL_newmetatable(L, classname); /* mt */
/* create __index table to place methods */
lua_pushstring(L, "__index"); /* mt,"__index" */
......
......@@ -35,7 +35,7 @@
#include "lauxlib.h"
int auxiliar_open(lua_State *L);
void auxiliar_newclass(lua_State *L, const char *classname, luaL_reg *func);
void auxiliar_newclass(lua_State *L, const char *classname, const luaL_reg *func);
void auxiliar_add2group(lua_State *L, const char *classname, const char *group);
void auxiliar_setclass(lua_State *L, const char *classname, int objidx);
void *auxiliar_checkclass(lua_State *L, const char *classname, int objidx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment