v / vlib / v2 / tests / target_codegen_example / freestanding_directives.vv2
8 lines · 6 sloc · 212 bytes · 10a27a35f62541cee8c09d75d37629f27d89d055
Raw
1module main
2
3#include linux <target_marker_linux.h>
4#include windows <target_marker_windows.h>
5#include freestanding <target_marker_freestanding.h>
6#flag freestanding -DPLATFORM_MARKER_FREESTANDING
7
8fn main() {}
9