File: test_kernel_src_in_pwd.h

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (17 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __FUNC__
#error __FUNC__ macro did not propagate to the Program
#endif

#define STR(a) S (a)
#define S(a) #a

void
__FUNC__ ()
{
  printf ("inside __FUNC__ (%s)\n", STR (__FUNC__));
}

kernel
void test_kernel() {
    __FUNC__();
}