From Electron Cloud
Jump to: navigation, search
(using build_host.h)
 
Line 1: Line 1:
 
How to use build_host.h and generate a version message:
 
How to use build_host.h and generate a version message:
  
 +
<pre>
 
#include "build_host.h" // created by Makefile
 
#include "build_host.h" // created by Makefile
  
Line 8: Line 9:
 
      " built " __DATE__ " " __TIME__ " on " BUILD_HOST);
 
      " built " __DATE__ " " __TIME__ " on " BUILD_HOST);
 
}
 
}
 +
</pre>

Revision as of 13:19, 23 July 2008

How to use build_host.h and generate a version message:

#include "build_host.h"		// created by Makefile

void print_version()
{
	printf("This is Thingamajig version " VERSION
	       " built " __DATE__ " " __TIME__ " on " BUILD_HOST);
}