Wooo actual scoping and better C interop
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
import c_passthrough_diff
|
||||
|
||||
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
__if_comp__ __C__ simple_passthrough """
|
||||
#include <stdio.h>
|
||||
int same = 5;
|
||||
"""
|
||||
|
||||
|int| main() {
|
||||
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
__if_comp__ __C__ simple_passthrough """
|
||||
printf("same_file: %d\n", same);
|
||||
"""
|
||||
c_passthrough_diff::print_it()
|
||||
|
||||
c_passthrough_diff::print_it();
|
||||
|int| i = 7;
|
||||
|int| j = 6;
|
||||
__if_comp__ __C__ simple_passthrough(i = i, j = j : j = j:) """
|
||||
j = i + j;
|
||||
"""
|
||||
c_passthrough_diff::print_it(j)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user