Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

malte (1708)

  (email not shown publicly)

Working on Joose JavaScript meta system (Blog) [] and blok [], a web based application for collaborative ui prototyping.

Journal of malte (1708)

Wednesday November 05, 2003
01:22 PM


[ #15596 ]

Hey, I've written a module that allows you to do this:

my $ptr = test_nasty();
# returns the pointer to a C struct of type EventHeader

my $struct = Inline::Struct::Nasty->new("EventHeader", $ptr, '#include "saru_api.h"');

print $struct->int_EventType; # prints the value of the member EventType as integer

Is this feasible or will it bite me is the ass?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.