mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-01 04:10:05 +00:00
[examples] c like expressions example
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
** Example: c like expressions
|
||||
**
|
||||
** TODO
|
||||
*/
|
||||
|
||||
a: 100;
|
||||
b: ( array[a] );
|
||||
c: sizeof xyz;
|
||||
d: i*stride + j;
|
||||
e: 2.71828;
|
||||
f: ( (H << 16) | (H >> 16) );
|
||||
g: ( {0, +1, -1} );
|
||||
h: foo.bar;
|
||||
(i += 1);
|
||||
(j = 0);
|
||||
(k = i*stride + j);
|
||||
l: ( foo(bar, array[k], sizeof c) );
|
||||
Reference in New Issue
Block a user