YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Where do I define SQUNICODE?
Kelvin
#1 Posted : Tuesday, October 5, 2021 3:17:48 AM(UTC)
Rank: Advanced Member

Groups: Registered, Moderator
Joined: 3/26/2015(UTC)
Posts: 63
Man
Location: Georgia

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
The reference manual mentions SQUNICODE once, but doesn't say where to define it. Do I put it in a file when building Squirrel? Do I include it somewhere when initializing the VM?
Kelvin
#2 Posted : Tuesday, October 5, 2021 3:45:49 AM(UTC)
Rank: Advanced Member

Groups: Registered, Moderator
Joined: 3/26/2015(UTC)
Posts: 63
Man
Location: Georgia

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
OK, defining it before including squirrel.h seems to have had an effect, but now every string literal is being treated as const char*, while const SQChar* is now acting like const wchar_t*, which breaks when you try to feed it a literal string. For instance, a function argument like const SQChar *s cannot take something like "Hello World!" as an argument because it's treating it as const char*. What am I supposed to do about this?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.053 seconds.