|
|
|
|
|
by daemin
5591 days ago
|
|
True, I forgot about that, that only the names of functions are called. Though I don't think it would be that hard to create some sort of binary/assembly code parser to run over a library to extract out the number of parameters & return values for a function. In general all C like languages share a similar calling structure when viewed in assembly. The tricky part as I see it would be to identify the parameter types, which could be done with some sort of heuristic that analyses the functions called on each parameter, or more easily by parsing a header file provided with the library. Then you would have a tool that takes in a header and a library and spits out a class that wraps that library automatically. However it wouldn't be nearly as clean, transparent, or neat as what ActiveRecord does. Still would be a useful tool to have. |
|