Files
Jake Teton-LandisandGitHub 181613f63f Introduce leak sanitizer, fix several string leaks (#59)
* more doc polish

* Free C strings returned from QuickJS

* Add address sanitizer

* Fix some leaks!

* Fix some leaks in test

* unfix an over-fixed test

* doc

* Fix sanitize dingus

* Santizer self test

* Split sanitizer out to own define

* enable -ftlo link time optimization for release build

* Remove extra string copy for QTS_GetString/QTS_Dump

* oops: leak build

* finally get C++ include settings working for emscripten.h
2022-03-20 04:18:06 +00:00

22 lines
357 B
C

#include <stdio.h>
#include "interface.h"
/*void eval_and_log(char* code) {*/
/*char* result = QTS_EvalToJSON(code);*/
/*fputs("-->\n", stdout);*/
/*fputs(result, stdout);*/
/*fputs("<--\n", stdout);*/
/*}*/
int main() {
/*eval_and_log(*/
/*"\"hello \" + \"world!\""*/
/*);*/
/*eval_and_log(*/
/*"\"hello \" + \"worl"*/
/*);*/
return 0;
}