io stuff
This commit is contained in:
parent
850410ef95
commit
921bade0eb
|
@ -1,4 +1,4 @@
|
|||
build with `make`, output is `./llib.dll`
|
||||
build with `make`, output is `./llib.so` or (win)`./llib.dll`
|
||||
|
||||
windows works through msys2
|
||||
|
||||
|
@ -10,9 +10,7 @@ todo:
|
|||
|
||||
* finish up http server
|
||||
|
||||
* https
|
||||
|
||||
* <res>:serve()
|
||||
* https
|
||||
|
||||
* ~~check memory saftey~~ (*should* be good) (now work on indirect & more lifetime stuff)
|
||||
|
||||
|
|
9
src/io.c
9
src/io.c
|
@ -1,4 +1,5 @@
|
|||
#include <unistd.h>
|
||||
#include "lua5.4/lua.h"
|
||||
#include "types/str.h"
|
||||
#include "io.h"
|
||||
#include "stdlib.h"
|
||||
|
@ -138,6 +139,14 @@ void i_pprint(lua_State* L, int indent, int skip_indent){
|
|||
if(!skip_indent) print_indentation(indent);
|
||||
printf(color_yellow"(%p)"color_reset, lua_topointer(L, -1));
|
||||
break;
|
||||
case LUA_TUSERDATA:
|
||||
if(!skip_indent) print_indentation(indent);
|
||||
printf(color_yellow"(ud,%p)"color_reset, lua_touserdata(L,-1));
|
||||
break;
|
||||
case LUA_TLIGHTUSERDATA:
|
||||
if(!skip_indent) print_indentation(indent);
|
||||
printf(color_yellow"(lud,%p)"color_reset, lua_topointer(L,-1));
|
||||
break;
|
||||
default:
|
||||
if(!skip_indent) print_indentation(indent);
|
||||
printf(color_yellow"%s"color_reset, lua_tostring(L,-1));
|
||||
|
|
Loading…
Reference in New Issue