make filewatcher more robust
This commit is contained in:
@@ -19,7 +19,7 @@ int main(int argc, char *argv[]) {
|
||||
printf("minimal_lib::getNewValue address: %p\n", minimal_lib::getNewValue);
|
||||
printf("minimal_lib::otherValue address: %p\n", &minimal_lib::otherValue);
|
||||
printf("==========================\n");
|
||||
printf("\n");
|
||||
printf("");
|
||||
|
||||
modified = minimal_lib::getNewValue(5);
|
||||
printf("getModified(5): %d\n", modified);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace minimal_lib {
|
||||
|
||||
int getNewValue(int x) {
|
||||
static int value = 0;
|
||||
static int value = 1;
|
||||
value = value + x;
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user