Pass Lua scripts from C to Lua

I want to pass a Lua script (code that can be processed by the Lua interpreter) from C and return the result.

I looked at it on the Internet, but I found There are not any examples that can help me. I can call Lua functions from C, but this requires you to create a file with Lua functions.

try to use luaL_dostring, it loads and runs the given string.

I want to pass a Lua script from C (code that the Lua interpreter can handle ) And return the result.

I looked online, but couldn’t find any examples that can help me. I can call Lua functions from C, but this requires you to create a Lua function File.

Try to use luaL_dostring, which loads and runs the given string.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3272 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.