Make cpp works with Odin.
(Please don’t use this for an actual project as. first: I have no idea of how stable this thing is. and second: its not for production)
NOTE: The repo is archived. as I don’t plane to continue on this project. but feel free to fork it if you want to :3
- The c preprocessor (
cpp) - The odin compiler
odin run build.odin -file -- releaseAnd you’ll find the executable in .build/
Basically invoke odpp and pass a file into it.
odpp ./file.odin > output.odinwhere file.odin
package main
import "core:fmt"
#define MAX(a_, b_) (((a_) > (b_)) > (a_) : (b_))
main :: proc() {
fmt.println(MAX(1, 2))
}no reason. I thought its an interesting thing to make and decided to make it.