Lucas Stadler лет назад: 9
Родитель
Сommit
7b00df2c3d
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      c/ton/main.c

+ 3 - 5
c/ton/main.c

@ -91,8 +91,7 @@ JSValueRef function_read_file(JSContextRef ctx, JSObjectRef function, JSObjectRe
91 91
		JSStringGetUTF8CString(path_str, path, 100);
92 92
		JSStringRelease(path_str);
93 93
94
		debug_print_value
95
	("read_file", ctx, args[0]);
94
		debug_print_value("read_file", ctx, args[0]);
96 95
97 96
		char full_path[150];
98 97
		// TODO: should not load from here?
@ -124,8 +123,7 @@ JSValueRef function_load(JSContextRef ctx, JSObjectRef function, JSObjectRef thi
124 123
		JSStringGetUTF8CString(path_str, path, 100);
125 124
		JSStringRelease(path_str);
126 125
127
		debug_print_value
128
	("load", ctx, args[0]);
126
		debug_print_value("load", ctx, args[0]);
129 127
130 128
		char full_path[150];
131 129
		// TODO: should not load from here?
@ -214,7 +212,7 @@ JSValueRef function_eval(JSContextRef ctx, JSObjectRef function, JSObjectRef thi
214 212
	if (argc == 2
215 213
		&& JSValueGetType(ctx, args[0]) == kJSTypeString
216 214
		&& JSValueGetType(ctx, args[1]) == kJSTypeString) {
217
		debug_print_value("eval", ctx, args[1]);
215
		debug_print_value("eval", ctx, args[0]);
218 216
219 217
		JSStringRef sourceRef = JSValueToStringCopy(ctx, args[0], NULL);
220 218
		JSStringRef pathRef = JSValueToStringCopy(ctx, args[1], NULL);