Compare commits
2 Commits
d3884f8e43
...
556a9081aa
| Author | SHA1 | Date | |
|---|---|---|---|
| 556a9081aa | |||
| 43e1415eaa |
12
premake5.lua
12
premake5.lua
@ -180,7 +180,7 @@ workspace "efsw"
|
|||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
links { "efsw-static-lib" }
|
links { "efsw-static-lib" }
|
||||||
files { "src/test/*.cpp" }
|
files { "src/test/efsw-test.cpp" }
|
||||||
includedirs { "include", "src" }
|
includedirs { "include", "src" }
|
||||||
conf_links()
|
conf_links()
|
||||||
|
|
||||||
@ -211,16 +211,6 @@ workspace "efsw"
|
|||||||
includedirs { "include", "src" }
|
includedirs { "include", "src" }
|
||||||
conf_links()
|
conf_links()
|
||||||
|
|
||||||
filter "configurations:debug"
|
|
||||||
defines { "DEBUG" }
|
|
||||||
symbols "On"
|
|
||||||
conf_warnings()
|
|
||||||
|
|
||||||
filter "configurations:release"
|
|
||||||
defines { "NDEBUG" }
|
|
||||||
optimize "On"
|
|
||||||
conf_warnings()
|
|
||||||
|
|
||||||
project "efsw-test-stdc"
|
project "efsw-test-stdc"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C"
|
language "C"
|
||||||
|
|||||||
@ -157,17 +157,6 @@ int main( int argc, char** argv ) {
|
|||||||
/// add a watch to the system
|
/// add a watch to the system
|
||||||
handleWatchID( fileWatcher.addWatch( CurPath + "test", ul, true ) );
|
handleWatchID( fileWatcher.addWatch( CurPath + "test", ul, true ) );
|
||||||
|
|
||||||
/// adds another watch after started watching...
|
|
||||||
efsw::System::sleep( 100 );
|
|
||||||
|
|
||||||
efsw::WatchID watchID =
|
|
||||||
handleWatchID( fileWatcher.addWatch( CurPath + "test2", ul, true ) );
|
|
||||||
|
|
||||||
/// delete the watch
|
|
||||||
if ( watchID > 0 ) {
|
|
||||||
efsw::System::sleep( 1000 );
|
|
||||||
fileWatcher.removeWatch( watchID );
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ( fileWatcher.addWatch( path, ul, true ) > 0 ) {
|
if ( fileWatcher.addWatch( path, ul, true ) > 0 ) {
|
||||||
fileWatcher.watch();
|
fileWatcher.watch();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user