Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want the ability to call C functions #2439

Open
KingBes opened this issue Oct 7, 2024 · 2 comments
Open

I want the ability to call C functions #2439

KingBes opened this issue Oct 7, 2024 · 2 comments
Labels

Comments

@KingBes
Copy link

KingBes commented Oct 7, 2024

Greeting.zep

namespace Utils;

#include "func.h"

class Greeting
{

    public static function say()
    {
        C.hello();
    }

}

func.h

void hello(){

}
@Jeckerson
Copy link
Member

You can achieve this via optimizers - https://docs.zephir-lang.com/latest/optimizers/

@KingBes
Copy link
Author

KingBes commented Oct 8, 2024

You can achieve this via optimizers - https://docs.zephir-lang.com/latest/optimizers/

Can this method call the c library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants