ucodes.cpp 328 Bytes
Newer Older
Vladislav Perepelkin's avatar
Vladislav Perepelkin committed
1
2
3
#include <cstdio>
#include "ucenv.h"

Kostya's avatar
fix    
Kostya committed
4
5
6
7
8
9
10
extern "C" 
{
	void c_init(int val, OutputDF &df) 
	{
		df.setValue(val);
		printf("c_init: %d, size: %d\n", val, (int)df.getSize());
	}
Vladislav Perepelkin's avatar
Vladislav Perepelkin committed
11

Kostya's avatar
fix    
Kostya committed
12
13
14
15
	void c_iprint(int val) 
	{
		printf("c_iprint %d\n", val);
	}
16

Kostya's avatar
fix    
Kostya committed
17
18
19
20
21
	void c_print(const InputDF &df) 
	{
		printf("c_print: %d\n", df.getValue<int>());
	}
}