#line
Directive
This page was translated by a robot.
The #linedirective affects the predefined constants __LINE__and __FILE__. Usually these constants indicate which line and which file the compiler is currently on. #lineThese values can be explicitly changed with the directive. However, since manipulated line and file specifications can make debugging considerably more difficult, experimental use of the #linedirective is generally NOT ADVISED.
Line: 4, File: test.cpp Line: 99, File: wurst.h
#include <stdio.h>
int main(){
printf("Line: %d, File: %s\n", __LINE__, __FILE__);
#line 99 "wurst.h"
printf("Line: %d, File: %s\n", __LINE__, __FILE__);
return 0;
}