You use lua_pushcfunction() to convert a C function pointer into an internal Lua object.
可以使用 lua_pushcfunction()将一个C函数指针转换成一个内部Lua对象。
Here is the C code for using the function (enter as my_square_tester.c)
下面是使用这个函数的C代码(请将下面的代码输入到 my_square_tester.c 文件中)
Here is the C code for using the function (enter as my_square_tester.c)
下面是使用这个函数的C代码(请将下面的代码输入到 my_square_tester.c 文件中)
应用推荐