You use lua_pushcfunction() to convert a C function pointer into an internal Lua object.
可以使用 lua_pushcfunction() 将一个 C 函数指针转换成一个内部 Lua 对象。
C plus plus language has the powerful function in pointer and array and object-oriented programming (OOP) technology which are in favor of programming.
语言在指针和数组方面的强大功能,以及面向对象技术,极大地方便了程序的编写。
You could simply return a pointer to a standard C++ object (if you don't need to access functions), any other type of function lookup table, or whatever you wanted.
你可以简单地返回一个标准C++对象的指针(如果你不需要访问函数),任何函数查询表的其它类型指针,或你需要的任何类型的指针。
应用推荐