o

odpp

feaf368libraryarchived

C Preprocessor for Odin

0 stars0 forksMITupdated 20 hours ago
Open repo

C Preprocessor for Odin

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

Building

Requirement

  • The c preprocessor (cpp)
  • The odin compiler

Building

odin run build.odin -file -- release

And you’ll find the executable in .build/

Usage

Basically invoke odpp and pass a file into it.

odpp ./file.odin > output.odin

where file.odin

package main

import "core:fmt"

#define MAX(a_, b_) (((a_) > (b_)) > (a_) : (b_)) 

main :: proc() {
	fmt.println(MAX(1, 2))
}

Why?

no reason. I thought its an interesting thing to make and decided to make it.

Package Info
Version
feaf368
License
MIT
Author
@hesham-cant-fly
Type
library
Forks
0
Created
20 hours ago
Updated
20 hours ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks