SWIG 3 中文手册——4. 脚本语言
[TOC] 4 脚本语言 This chapter provides a brief overview of scripting language extension programming and the mechanisms by which scripting language interpreters access C and C++ code. 本章简要概述了脚本语言扩展编程,以及脚本语言解释器访问 C 和 C++ 代码的机制。 4.1 两种语言的概览 When a scripting language is used to control a C program, the resulting system tends to look as follows: 当使用脚本语言来控制 C 程序时,生成的系统往往如下所示: In this programming model, the scripting language interpreter is used for high level control whereas the underlying functionality of the C/C++ program is accessed through special scripting language "commands." If you have ever