- printf("Now returning a UsbCommand as a string");
- lua_pushlstring(L,(const char *)&response,sizeof(UsbCommand));
- return 1;
+ printf("Now returning a uint64_t as a string");
+ uint64_t x = 0xDEADBEEF;
+ uint8_t destination[8];
+ num_to_bytes(x,sizeof(x),&destination);
+ lua_pushlstring(L,(const char *)&x,sizeof(x));
+ lua_pushlstring(L,(const char *)&destination,sizeof(destination));
+
+ return 2;