Where does 'DEBUG' come from?

new topic     » topic index » view thread      » older message » newer message

From the manual,

-- Example 1. -- 
if find("-DEBUG", command_line()) then 
    writefln("Debug x=[], y=[]", {x,y}) 
end if 
-- Example 1. -- 
ifdef DEBUG then 
    writefln("Debug x=[], y=[]", {x,y}) 
end ifdef 

In the top example:

I see they are looking for the string "-Debug" in the command_line()

In the lower example:

What I don't understand is where did the uppercase DEBUG come from and where do we hope to find it?

Don Cole

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu