Skip to content

kryffon/odin-umka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odin-umka

Odin bindings for umka 1.5.5

Usage

umka_code: cstring = /* some umka code */

U := umka.Alloc()
ok := umka.Init(U, "main.um", umka_code, 1024 * 1024, nil, argc, raw_data(argv), false, false, umka.PrintCompileWarning)

when UMPROF {
		if ok do umka.umprofInit(U)
}

// add umka modules here
if ok do ok = umka.Compile(U)

if ok {
		exitcode := umka.Run(U)
		if exitcode != 0 do umka.PrintRuntimeError(U)
} else {
		umka.PrintCompileError(U)
}

when UMPROF {
		umka.umprofPrintTable()
		umka.umprofDinit()
}

umka.Free(U)

About

Odin bindings for Umka 1.5.5

Resources

License

MIT, BSD-2-Clause licenses found

Licenses found

MIT
LICENSE
BSD-2-Clause
LICENSE_UMKA

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors