-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from naveedkhan8067/io-c_preprocessor
C-Preprocessor Example
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as fs from "fs"; | ||
import * as path from "path"; | ||
import * as chalk from "chalk"; | ||
|
||
export function Main (subStr: string) { | ||
// command: c-preprocessor Main.ts MainoutputFile.ts | ||
#include "config1.js" | ||
#if "VARIENT" == "MAC" | ||
console.log("Mac platform string value: " + subStr); | ||
#elif "VARIENT" == "LINUX" | ||
console.log("Linux platform string value: " + subStr); | ||
#else | ||
console.log("Windows platform string value: " + subStr); | ||
#endif | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#define MY_CONST true | ||
#define variable1 1 | ||
#define variable2 4 | ||
//#define MY_CONST2 House | ||
#define MY_CONST3 42 | ||
#define VARIENT LINUX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters