diff options
Diffstat (limited to 'examples/argument_parsing')
| -rw-r--r-- | examples/argument_parsing/#argument_parsing.c# | 28 | 
1 files changed, 0 insertions, 28 deletions
| diff --git a/examples/argument_parsing/#argument_parsing.c# b/examples/argument_parsing/#argument_parsing.c# deleted file mode 100644 index 38309db..0000000 --- a/examples/argument_parsing/#argument_parsing.c# +++ /dev/null @@ -1,28 +0,0 @@ -#include <honeysuckle.h> - -int demo(lua_State *L) -{ -   lua_Integer i; -   lua_Number n; -   char *string; -   hs_parse_args(L, hs_int(i), hs_num(n), hs_str(string)); -   printf("received %d, %f, and %s\n", i, n, string); -   return 0; -} - -int main() -{ -   lua_State *L = luaL_newstate(); -   luaL_openlibs(L); - -   lua_pushcfunction(L, demo); -   lua_setglobal(L, "demo"); - -   luaL_dostring("demo(12, 34.4, 'hi there!')"); -   return 0; -} - -grindr -hinge -bumble -lex | 
