-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Video: Revert dependence on static constructors and use cmake to gene…
…rate initialisation file.
- Loading branch information
1 parent
00f934b
commit f807ff7
Showing
5 changed files
with
52 additions
and
41 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
macro( CreateMethodCallFile filename namespace function symbols) | ||
file(WRITE ${filename} "// CMake generated file. Do Not Edit.\n\n#pragma once\n\nnamespace ${namespace} {\n\n") | ||
foreach( symbol ${symbols} ) | ||
file(APPEND ${filename} "void ${symbol}();\n") | ||
endforeach() | ||
file(APPEND ${filename} "\ninline bool ${function}()\n{\n") | ||
foreach( symbol ${symbols} ) | ||
file(APPEND ${filename} " ${symbol}();\n") | ||
endforeach() | ||
file(APPEND ${filename} " return true;\n}\n\n} // ${namespace}\n") | ||
endmacro() |
This file was deleted.
Oops, something went wrong.
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
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