目录

目标平台:
#define CONVERT_CHAR_TO_OSCHAR ( _astring_,
_oscharstring_   ) 

Converts a char string to an AkOSChar string.

评论:
On some platforms the AkOSChar string simply points to the same string, on others a new buffer is allocated on the stack using AkAlloca. This means you must make sure that:
  • The source string stays valid and unmodified for as long as you need the AkOSChar string (for cases where they point to the same string)
  • The AkOSChar string is used within this scope only -- for example, do NOT return that string from a function (for cases where it is allocated on the stack)

在文件AkPlatformFuncs.h503行定义。