mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
$if debug {
This commit is contained in:
parent
87216cff63
commit
c0cc4701af
2 changed files with 10 additions and 1 deletions
|
@ -232,6 +232,9 @@ fn (v mut V) compile() {
|
|||
if v.pref.is_play {
|
||||
cgen.genln('#define VPLAY (1) ')
|
||||
}
|
||||
if v.pref.is_debug {
|
||||
cgen.genln('#define VDEBUG (1) ')
|
||||
}
|
||||
cgen.genln('
|
||||
#include <stdio.h> // TODO remove all these includes, define all function signatures and types manually
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue