Christoffer Lerno

Results 1219 comments of Christoffer Lerno

This is due to a fundamental issue with conditional code. Not even this works: ```c module test; fn void main() {} extern fn void func() @if(FOO == 0); const int...

However, there are cases where the original example might work because of ordering. I think this is unfortunate: having `@if` to depend on some other `@if` seems very fraught with...

Please try the latest, which should emit an error.

So then we can close this or?

Can you give an example and explain what you'd like to see and what you see instead?

I think this could be improved with better debug codegen. I'll have a look.

I've done an update to the `dev` branch to improve this, see if you like it.

Hmmm.. so that's the stackdump for the example above? What happened before?

This is what I see on MacOS with your code: ``` ERROR: 'Unreachable statement reached.' in std.core.builtin.panicf (/Users/lerno/Projects/c3c/lib/std/core/builtin.c3:129) [test] in test.foo (/Users/lerno/Projects/c3c/resources/testfragments/debugstuff.c3:8) [test] in test.main (/Users/lerno/Projects/c3c/resources/testfragments/debugstuff.c3:4) [test] in main (/Users/lerno/Projects/c3c/resources/testfragments/debugstuff.c3:3)...

@cbuttner If you grab a C stack trace with inline code, how does it look?