Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atlas-comstock/c_eval

C/C++ equivalent of eval(“function(arg1, arg2)”)
https://github.com/atlas-comstock/c_eval

Last synced: 7 days ago
JSON representation

C/C++ equivalent of eval(“function(arg1, arg2)”)

Awesome Lists containing this project

README

        

# C_eval

A demo C/C++ equivalent of eval(“function(arg1, arg2)”)

This implementation is based on [Example of Printing the ELF Symbol Table](https://docs.oracle.com/cd/E19683-01/817-0679/6mgfb878d/index.html)

More details on [my_blog](http://yonghaowu.github.io/2016/06/02/Ways_To_Excute_Function_By_Ref/)

# Preparation
You need to install gelf and libelf.

# Command

``` gcc main.c -std=c99 -g -l elf ; ./a.out ```

# TO_DO

* Add parameters.