Packages

C(++) AST to elixir

Current section

Files

Jump to
cast test support c_example hello.c
Raw

test/support/c_example/hello.c

#include "hello.h"
const char* hello(int to)
{
switch(to)
{
case world:
return "world";
break;
case planet:
return "planet";
break;
case universe:
return "universe";
break;
default:
return "you";
}
};