#line使用分析
来源:互联网 发布:软件项目进度报告 编辑:程序博客网 时间:2024/06/03 16:58
1 #line的用法
- #line用于强制指定新的行号和编译文件名,并对源程序的代码重新编号。
- 用法:#line number filename (filename可省略)。
- #line编译指示字的本质是重定义
__LINE__ 和 __FILE__
(由此可以看出来是由预处理进行处理的)。
编程实验:#line的使用
#include <stdio.h>// The code section is written by A.// Begin#line 1 "a.c"// End// The code section is written by B.// Begin#line 1 "b.c"// End// The code section is written by Delphi.// Begin#line 1 "delphi_tang.c"int main(){ printf("%s : %d\n", __FILE__, __LINE__); printf("%s : %d\n", __FILE__, __LINE__); return 0;}// End
2 小结
- #line用于强制指定新的行号和编译文件名。
阅读全文
0 1
- #line使用分析
- #line的使用
- 使用Command Line下载文件
- unity使用line renderer画线
- Command line中使用TexturePacker
- Command Line中使用TexturePacker
- android canvas使用line画半园
- TexturePacker命令行使用(command line)
- line-height测量及使用
- Sql Line操作使用Hbase
- #error #warning 和 #line 用法分析
- Line论文中的Alias Sampling Algorithm 分析
- LINE
- line
- line
- line
- 使用Java Command Line Tool开发应用程序
- mysql command line client 使用命令
- HDU 1075 What Are You Talking About(字典树)
- HDU_2007 偶数平方与奇数立方
- 优先队列详解
- spark调优
- 31.开源项目--git远程仓库的基本操作
- #line使用分析
- ECharts 多个柱状图动态获取json数据
- poj 3295 构造法
- ES6学习笔记
- 关于Linux中的SIGABRT信号
- 类内定义与内联函数
- 计算器感悟及模块化程序分析
- 读懂 Workerman 框架和 GatewayWorker 框架
- C++学习之