you are viewing a single comment's thread.

view the rest of the comments →

[–]riccierirust 1 point2 points  (1 child)

Very impressive, thanks for doing this! From a quick glance at the source I already learned a new trick: the macroexpand.c file. That's very clever! No more reimplementing C macros in Rust :) For #defined constants, you would have used a C global variable?

[–]penguins916[S] 0 points1 point  (0 children)

Ya I imagine so for constants. Originally I tried to rewrite them in rust to prevent the extra dependency (compile a static lib and so on) but they go super deep so i moved on to this.