inherit
- Import and inherit base class modules
Function Prototype
API
lua
inherit(modulename: <string>)Parameter Description
| Parameter | Description |
|---|---|
| modulename | Module name string |
Usage
This is equivalent to the inherit mode of the import interface, which is:
lua
import("xxx.xxx", {inherit = true})With the inherit interface, it will be more concise:
lua
Inherit("xxx.xxx")For an example, see the script in the xmake tools directory: clang.lua
This is part of the clang tool module that inherits gcc.