File: c%2B%2Bcfront.h

package info (click to toggle)
slang-slirp 1.9.8-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,064 kB
  • ctags: 4,861
  • sloc: ansic: 9,776; sh: 3,051; makefile: 702; fortran: 336; cpp: 275; pascal: 6
file content (13 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13

#define FIELD_SET(klass, field, ctype, sltype)\
void c__##klass##_##field##_set (void *arg1, sltype arg2) \
{\
   ((klass*)arg1)->field = (ctype) arg2;\
}

#define FIELD_GET(klass, field, ctype, sltype)\
sltype c__##klass##_##field##_get (void *arg1) \
{\
   return (ctype) ((klass*)arg1)->field;\
}