xtlsoft/zephir-c-call 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xtlsoft/zephir-c-call

Composer 安装命令:

composer require xtlsoft/zephir-c-call

包简介

An extension that allows you to call C functions in Zephir.

README 文档

README

An extension that allows you to call C functions in Zephir.

Installation

If your zephir is installed in project scope:

composer require xtlsoft/zephir-c-call

If your zephir is installed in global scope:

composer g require xtlsoft/zephir-c-call

If your zephir was installed as zephir.phar:

You need to re-pack the zephir.phar file.

Usage

You can call c_include, c_call, c_runf functions from Zephir.

c_include

c_include(string filename);

The filename must be a literal. Don't use the return value.

c_call

c_call(
    string ret_type, string func_name,
    [string param1_type, string param1_value,
    [string param2_type, string param2_value,
    [string...
);

type can be one of int, long, double, float, string.

except values, all types and func_names should be literals.

c_runf

c_runf(
    string ret_type, string expr,
    [string arg1, [string arg2, [string arg3...
);

ret_type and expr must be literals.

You can access the arguments using ${1}, ${2}, ${3}... in expr.

All arguments are zval* typed.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固