SonolusHaniwa
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode

Macros

DISABLE_INTERPRETER

The DISABLE_INTERPRETER specifier is used to indicate which code does not need to be interpreted by the interpreter.

COMPILE_RUNTIME

The COMPILE_RUNTIME specifier is used to distinguish whether the current process is interpreting or compiling.

It will be added to the head of the file automatically by interpreter, so you don't need to add it by yourself.

Constructor

The Constructor specifier should be placed before the class constructor so that the interpreter can recognize this is a class constructor.

Destructor

The Destructor specifier should be placed before the class destructor so that the interpreter can recognize this is a class destructor.

Blocked

The Blocked specifier can be placed before any function definition so that the interpreter will not add extra params to this function. You can use this specifier to define a function which has the same name with library function.

NonType

Decrypted.

CppLoop

The CppLoop specifier can be placed in any part of for loop condition. All the for loop with CppLoop specifier will be treated as a normal C++ for loop instead of Sonolus for loop.

SonolusApi

SonolusApi is same as var, but interpreter only recognize a function return SonolusApi as a Sonolus function and convert all statements into Sonolus statements, instead of var.

play

The play specifier tells compiler to generate program that only can generate engine play data and engine configuration.

It will be added by libsonolush automatically. If you are compiling by hand, you may need to add compilation paramteter -Dplay.

tutorial

The tutorial specifier tells compiler to generate program that only can generate engine tutorial data and engine configuration.

It will be added by libsonolush automatically. If you are compiling by hand, you may need to add compilation paramteter -Dtutorial.

preview

The preview specifier tells compiler to generate program that only can generate engine preview data and engine configuration.

It will be added by libsonolush automatically. If you are compiling by hand, you may need to add compilation paramteter -Dpreview.

watch

The watch specifier tells compiler to generate program that only can generate engine watch data and engine configuration.

It will be added by libsonolush automatically. If you are compiling by hand, you may need to add compilation paramteter -Dwatch.

最近更新: 2025/6/8 17:05
Contributors: LittleYang0531
Prev
Index
Next
Builtins