-
-
16 Apr 2012 21:20:13 UTC
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (535 / 132 / 8)
- Kwalitee
Bus factor: 0- 85.27% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (852.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Marvin Humphrey <marvin at rectangular dot com>
- Dependencies
- JSON::XS
- Lingua::Stem::Snowball
- Lingua::StopWords
- Parse::RecDescent
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Clownfish::CBlock - A block of embedded C code.
DESCRIPTION
CBlock exists to support embedding literal C code within Clownfish header files:
class Crustacean::Lobster { /* ... */ /** Give a lobstery greeting. */ inert inline void say_hello(Lobster *self); } __C__ #include <stdio.h> static CHY_INLINE void crust_Lobster_say_hello(crust_Lobster *self) { printf("Prepare to die, human scum.\n"); } __END_C__
METHODS
new
my $c_block = Clownfish::CBlock->new( contents => $text, );
contents - Raw C code.
get_contents
Accessor.
COPYRIGHT AND LICENSE
Copyright 2009-2011 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm KSx::Simple
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.