Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L LangOptum
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nuclaer
  • LangOptum
  • Wiki
  • Preprocessor

Preprocessor · Changes

Page history
Added Preprocessor Docs authored May 17, 2020 by Nuclaer's avatar Nuclaer
Hide whitespace changes
Inline Side-by-side
Showing with 17 additions and 0 deletions
+17 -0
  • Preprocessor.md Preprocessor.md +17 -0
  • No files found.
Preprocessor.md 0 → 100644
View page @ 881269b7
# Macros
## \#define
```
#define MY_MACRO "Hello World!"
```
Just like in C/C++, but without function-like macros (at least for now)
## \#include
```
#include myfile.lo
```
Note the lack of quotes around the filename. In LO they are not needed. Each file is only ever included once, and header files are not required. The compiler makes two passes over the files to collect all of the declarations so declaration order does not matter.
\ No newline at end of file
Clone repository
  • Builtins
  • Compiler Mechanics
  • Compiler Structure
  • Desired Builtin Libraries
  • File Inclusion
  • Home
  • OOP
  • Operator Notes
  • Preprocessor
  • Program Control
  • Variable Types
  • language
  • lort (LO RunTime)