-
Notifications
You must be signed in to change notification settings - Fork 119
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 #2007 from xodio/read-only-types
Introduce constant types
- Loading branch information
Showing
358 changed files
with
15,478 additions
and
14,373 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ dist/ | |
node_modules/ | ||
|
||
**/*.bs.js | ||
**/*.ne.js |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
**/*.ne.js | ||
|
||
test-cpp/run-tests | ||
test-cpp/run-tests.dSYM | ||
.pio-build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ globals }} | ||
|
||
namespace xod { | ||
namespace {{ ns patch }} { | ||
{{> patchTemplateDefinition}} | ||
struct Node { | ||
{{ indent patchPinTypes }} | ||
|
||
{{ indent beforeNodeImplementation }} | ||
|
||
{{ indent generatedCode }} | ||
|
||
State state; | ||
|
||
State* getState(__attribute__((unused)) Context ctx) { | ||
return &state; | ||
} | ||
|
||
{{ indent insideNodeImplementation }} | ||
}; | ||
} // namespace {{ ns patch }} | ||
} // namespace xod |
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,26 @@ | ||
{{#each implBlocks}} | ||
{{#if (eq type "global")}} | ||
{{ contents }} | ||
{{else if (eq type "nodespace")}} | ||
namespace xod { | ||
namespace {{ ns ../patch }} { | ||
{{ contents }} | ||
} // namespace {{ ns ../patch }} | ||
} // namespace xod | ||
{{else if (eq type "node")}} | ||
namespace xod { | ||
namespace {{ ns ../patch }} { | ||
{{> patchTemplateDefinition .. }} | ||
struct Node { | ||
{{ indent ../patchPinTypes }} | ||
|
||
{{ unindent meta }} | ||
|
||
{{ indent ../generatedCode }} | ||
|
||
{{ contents }} | ||
}; | ||
} // namespace {{ ns ../patch }} | ||
} // namespace xod | ||
{{/if}} | ||
{{/each}} |
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
Oops, something went wrong.