mirror of
https://github.com/hanzoai/quickjs-emscripten.git
synced 2026-10-30 19:37:29 +00:00
* 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
22 lines
357 B
C
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;
|
|
}
|