Comments (2)
This is a known issues ( known by me ) and you can work around it in the same way as I have done in the unittests, by adding multiple "types" sections in the tld and manually order your types.
"types" : {
"type_a" : {}
},
"unions" : {
"union_a" : { "members" : [ "type" : "type_a" ] }
},
"types" : {
"type_b" : { "members" : [ "type" : "union_a" ] }
}
not perfect, but it works.
from datalibrary.
Ah, great! That is fine by me, though it would be nice if DL warned about it when compiling.
Also nice since it doesn't change order of types between tld and header
from datalibrary.
Related Issues (20)
- Max member size on struct is 64 HOT 2
- type name length is max 1024 HOT 2
- member default value sizes smaller than its size causes no errors
- DL_ASSERT() is badly defined. HOT 2
- Inline arrays of enums seems to break c-header-writing HOT 6
- add dlconfig.h in the style of imconfig.h in imgui.
- Generate typeid from "the entire struct" instead of just type-name. HOT 9
- Missing AnyPointer, i.e. a "late assigned" pointer type
- Feature request: Fusing pointers to identical data HOT 1
- Improve json formatting to improve readability HOT 7
- Automatic creation of string hashes HOT 12
- DL requires silencing of 2 warnings on msvc to compile "cleanly"
- DL duplicates data when using pointers to structs HOT 5
- dl_util should not use dl's internal code HOT 1
- The reflection API is missing information about default values HOT 3
- Add include support in tld files HOT 13
- remove DL_NULL_PTR_OFFSET
- dltlc crashes when having long default values
- dltlc crashes (asserts) when using too few default values
- clang/debug is disabled in actions as valgrind fails for that combination. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datalibrary.