Compare commits

..

No commits in common. "62a318e69b3d696fabf592d65ac1b72dc8d48732" and "b311c73c438ffdf579a40842897feceed2ece172" have entirely different histories.

3 changed files with 5 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# Test comment.
// Test comment.
@log_info("game is loading")
return {

View File

@ -119,7 +119,7 @@ pub const Tokenizer = struct {
'#' => {
cursor += 1;
while (cursor < self.source.len and self.source[cursor] != '\n') {
while (cursor < self.source.len and self.source[cursor] == '\n') {
cursor += 1;
}
},

View File

@ -15,16 +15,12 @@ fn kym_handle_errors(info: kym.ErrorInfo) void {
var remaining_frames = info.frames.len;
if (remaining_frames != 0) {
app.log_fail("stack trace:");
while (remaining_frames != 0) {
remaining_frames -= 1;
app.log_fail(info.frames[remaining_frames].name);
}
}
}
fn kym_log_info(env: *kym.RuntimeEnv) kym.RuntimeError!?*kym.RuntimeRef {
app.log_info(try kym.unbox_string(env, try env.view_arg(0)));