Skip to content

Commit

Permalink
add C "PDL_Value" union type
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 10, 2022
1 parent 15f22c5 commit 956f215
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Basic/Core/pdl.h.PL
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ PDL_TYPELIST_ALL(X)
PDL_TYPELIST_ALL(X)
#undef X
typedef struct {
pdl_datatypes type;
union {
typedef union {
#define X(sym, ctype, ppsym, shortctype, defbval, realctype, ...) \
ctype ppsym;
ctype ppsym;
PDL_TYPELIST_ALL(X)
#undef X
} value;
} PDL_Value;
typedef struct {
pdl_datatypes type;
PDL_Value value;
} PDL_Anyval;
#include "pdlthread.h"
Expand Down
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- GLUT TriD now reopens the window on next draw if was closed
- bifuncs like Ops::plus no longer need explicit swap parameter
- remove PDL.grow from API
- add C "PDL_Value" union type

2.064 2022-01-08
- enable perldl -glut on Win32
Expand Down

0 comments on commit 956f215

Please sign in to comment.