cdt/cdt_6_0_x/org.eclipse.cdt.managedbuilder.core.tests/testdata/Basename.cpp
author cawthron
Wed, 04 Nov 2009 15:12:39 -0600
branchRCL_2_4
changeset 107 50bdf9ce2ff9
parent 37 c2bce6dd59e7
permissions -rw-r--r--
add branch RCL_2_4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     1
/*
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     2
============================================================================
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     3
 Name        : $(baseName).cpp
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     4
 Author      : $(author)
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     5
 Version     :
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     6
 Copyright   : $(copyright)
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     7
 Description : Exe source file
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     8
============================================================================
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     9
*/
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    10
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    11
//  Include Files  
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    12
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    13
#include "$(baseName).h"
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    14
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    15
//  Defined Constants
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    16
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    17
#define Constant "CONSTANT"
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    18
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    19
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    20
//  Global Variables
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    21
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    22
static int globalValue;
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    23
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    24
//  Local Functions
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    25
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    26
void printMessage(char* message) {
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    27
    printf(message);
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    28
}
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    29
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    30
// Main Function
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    31
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    32
int main(int nArgs, char **args) {
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    33
    printMessage("Hello, world!\n");
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    34
    printMessage("$(baseName)");
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    35
}
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    36
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    37