jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/c/macro_feature.test
2016-02-03 18:00:01 -05:00

43 lines
1.0 KiB
Plaintext

# include <stdio.h>
#define PG_locked 0
#elif
#else
#endif
#error
#ifdef
#ifndef
#if
#import
#include
#line
#pragma
#undef
#using
----------------------------------------------------
[
["macro", [
"# ", ["directive", "include"],
["string", "<stdio.h>"]
]],
["macro", ["#", ["directive", "define"], " PG_locked 0"]],
["macro", ["#", ["directive", "elif"]]],
["macro", ["#", ["directive", "else"]]],
["macro", ["#", ["directive", "endif"]]],
["macro", ["#", ["directive", "error"]]],
["macro", ["#", ["directive", "ifdef"]]],
["macro", ["#", ["directive", "ifndef"]]],
["macro", ["#", ["directive", "if"]]],
["macro", ["#", ["directive", "import"]]],
["macro", ["#", ["directive", "include"]]],
["macro", ["#", ["directive", "line"]]],
["macro", ["#", ["directive", "pragma"]]],
["macro", ["#", ["directive", "undef"]]],
["macro", ["#", ["directive", "using"]]]
]
----------------------------------------------------
Checks for macros, multi-line macros and paths inside include statements.