summaryrefslogtreecommitdiff
path: root/src/__PREDEFINED_MACROS__/__FILE__.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 12:52:58 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 12:52:58 -0400
commit60c3831e53b7afa5dd372601250e7e8739329383 (patch)
tree56524ad67c32ed4bf4aa24ab06b310e5b1b5d542 /src/__PREDEFINED_MACROS__/__FILE__.c
parent4d4132eaebe78939ee32e2dd9139913df7665bea (diff)
move more stuff out of nonstd/
Diffstat (limited to 'src/__PREDEFINED_MACROS__/__FILE__.c')
-rw-r--r--src/__PREDEFINED_MACROS__/__FILE__.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/__PREDEFINED_MACROS__/__FILE__.c b/src/__PREDEFINED_MACROS__/__FILE__.c
new file mode 100644
index 00000000..257ae89b
--- /dev/null
+++ b/src/__PREDEFINED_MACROS__/__FILE__.c
@@ -0,0 +1,14 @@
+#define __FILE__ /** source file name **/
+
+/***
+is automatically defined by the compiler as the file name of the
+current source file being compiled as a character string literal.
+
+THIS() can be changed using PPDIR(line).
+***/
+
+/*
+VALUE_TYPE(string literal)
+VALUE_FIXED(VAR(the current file name))
+STDC(1)
+*/