Difference between revisions of "AGIWiki/Includes"

Jump to navigation Jump to search
36 bytes added ,  15:11, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
m (syntax -> source)
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
When the compiler encounters the above line, it will replace it with the contents of "file.txt". So, the following logic file:
When the compiler encounters the above line, it will replace it with the contents of "file.txt". So, the following logic file:


<source lang="cpp">
<syntaxhighlight lang="cpp">
  #include "file.txt"
  #include "file.txt"


Line 29: Line 29:
  }
  }


</source>
</syntaxhighlight>
would be seen by the compiler as:
would be seen by the compiler as:
<source lang="cpp">
<syntaxhighlight lang="cpp">
  #define ego_on_water f0
  #define ego_on_water f0
  #define new_room    f5
  #define new_room    f5
Line 45: Line 45:
     score  ;
     score  ;
  }
  }
  </source>
  </syntaxhighlight>


'''Note:''' [[AGIWiki/AGI Studio|AGI Studio]] requires include files to be in the "src" directory for the game.
'''Note:''' [[AGIWiki/AGI Studio|AGI Studio]] requires include files to be in the "src" directory for the game.
TrustedUser
2,147

edits

Navigation menu