mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Better name mangler for SSA generation
TODO: Define better name mangling rules and allow for explicit name overload
This commit is contained in:
+14
-9
@@ -1,14 +1,19 @@
|
||||
#import "punity.odin" as pn
|
||||
#import "punity.odin" as pn
|
||||
#import "test.odin" as t1
|
||||
#import "sub/test.odin" as t2
|
||||
|
||||
main :: proc() {
|
||||
init :: proc(c: ^pn.Core) {
|
||||
}
|
||||
t1.thing()
|
||||
t2.thing()
|
||||
|
||||
step :: proc(c: ^pn.Core) {
|
||||
if pn.key_down(pn.Key.ESCAPE) {
|
||||
c.running = false
|
||||
}
|
||||
}
|
||||
// init :: proc(c: ^pn.Core) {
|
||||
// }
|
||||
|
||||
pn.run(init, step)
|
||||
// step :: proc(c: ^pn.Core) {
|
||||
// if pn.key_down(pn.Key.ESCAPE) {
|
||||
// c.running = false
|
||||
// }
|
||||
// }
|
||||
|
||||
// pn.run(init, step)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user