TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
817 B
20 lines
817 B
#include <phpx.h>
|
|
|
|
extern zend_class_entry *php_get_class(int class_id, const php::String &class_name);
|
|
extern zend_function *php_get_func(int func_id, const php::String &func_name);
|
|
|
|
static inline php::Variant CALL(int func_id, const php::String &func_name, const php::ArgList &args) {
|
|
return php::call(php_get_func(func_id, func_name), args);
|
|
}
|
|
|
|
static inline php::Variant CALL(int func_id, const php::String &func_name) {
|
|
return php::call(php_get_func(func_id, func_name));
|
|
}
|
|
|
|
static inline php::Variant CALL_SILENT(int func_id, const php::String &func_name, const php::ArgList &args) {
|
|
return php::silentCall(php_get_func(func_id, func_name), args);
|
|
}
|
|
|
|
static inline php::Variant CALL_SILENT(int func_id, const php::String &func_name) {
|
|
return php::silentCall(php_get_func(func_id, func_name));
|
|
}
|
|
|