ABAP/ABSL/C/nodejs获取当前模块的方法是什么
导读:本文共689字符,通常情况下阅读需要2分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: ABAPsy-CPROGABSLC__FILE__用以指示本行语句所在源文件的文件名.#include <stdio.h> int main() { printf("%s\n",__FILE__); }vi另存为test.c, gcc编译生成a.out,执行后输出结果为:test.c__LINE__用以指示本行语句在源文件中的位置... ...
音频解说
ABAP
sy-CPROG
ABSL
C
__FILE__用以指示本行语句所在源文件的文件名.
#include <stdio.h> int main() { printf("%s\n",__FILE__); }
vi另存为test.c, gcc编译生成a.out,执行后输出结果为:
test.c
__LINE__用以指示本行语句在源文件中的位置信息,
输出:
4
5
6
nodejs
webpack配置文件里随处可见这种全局变量__dirname的使用:
example:
running node example.js from /Users/mjr
console.log(__dirname); // Prints: /Users/mjr console.log(path.dirname(__filename)); // Prints: /Users/mjr
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:
ABAP/ABSL/C/nodejs获取当前模块的方法是什么的详细内容,希望对您有所帮助,信息来源于网络。