diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/script/scriptvar.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/script/scriptvar.h')
-rw-r--r-- | Src/Wasabi/api/script/scriptvar.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/Wasabi/api/script/scriptvar.h b/Src/Wasabi/api/script/scriptvar.h new file mode 100644 index 00000000..0b225a50 --- /dev/null +++ b/Src/Wasabi/api/script/scriptvar.h @@ -0,0 +1,35 @@ +#ifndef __SCRIPTVAR_H +#define __SCRIPTVAR_H + +#ifdef __cplusplus + class ScriptObject; +#endif + +#ifdef _MSC_VER +#pragma pack(push, 1) +#else +#pragma pack(1) +#endif + +typedef struct { + int type; // basic type, see above + union { // union of 4 bytes of different types + int idata; // Integer + float fdata; // Float + double ddata; // Double +#ifdef __cplusplus + ScriptObject *odata; // Object +#else + void *odata; +#endif + const wchar_t *sdata; // String + } data; +} scriptVar; + +#ifdef _MSC_VER +#pragma pack(pop) +#else +#pragma pack() +#endif + +#endif |