PageRenderTime 30ms CodeModel.GetById 28ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/ m-music-language/src/tests/test_func.m

http://m-music-language.googlecode.com/
Objective C | 24 lines | 19 code | 4 blank | 1 comment | 0 complexity | a6be9c62c0358f8b174ca161558d069b MD5 | raw file
 1/*	Testing the function capability in m. */
 2
 3int const( )
 4{
 5	return 0;
 6}
 7
 8void prnt( int a, int b )
 9{
10	print(a);
11	print(b);
12}
13
14int plus( int a, int b )
15{
16	return a + b;
17}
18
19void main()
20{
21	print(const());
22	prnt( 1, 2 );
23	print(plus( 1, 2 ));
24}