Crates.io | preproc |
lib.rs | preproc |
version | 0.2.0 |
source | src |
created_at | 2022-07-15 12:00:00.304421 |
updated_at | 2023-04-07 11:12:35.993189 |
description | a sane pre-processor for shaders and any other language |
homepage | |
repository | https://github.com/lassade/preproc |
max_upload_size | |
id | 626162 |
size | 186,716 |
Simple and configurable SIMD pre-processor, with a throughput of up to 3 GiB/s
' ' (0x20)
and '\t' (0x09)
!a == a!
and !(a && b) == (a && b)!
b && a c! ||
is parsed as (b || (a && !(c)))
//#if MY_MACRO // this directive is commented out
#if MY_OTHER_MACRO || MY_MACRO // this directive is active, single line comments are fine
// your code here
#endif // doesn't care about white spaces as long the '#' is the frist char in the line
// invalid multiline comments
/*#if MY_MACRO // won't be treated as a directive and won't be able to output the right code
// your code here
#endif*/
// valid multiline comments styles
/*
#if MY_MACRO
// your code here
#endif*/
/*
#if MY_MACRO
// your code here
#endif
*/