ENH: discard codeProperties in favour of using sha1-encoded library names

This commit is contained in:
Mark Olesen
2011-03-03 09:06:14 +01:00
parent ffc74562f7
commit 7cd3c926bd
6 changed files with 275 additions and 325 deletions

View File

@ -32,6 +32,7 @@ License
${codeInclude}
//}}} end codeInclude
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
@ -46,9 +47,16 @@ extern "C"
//
// unique function name that can be checked if the correct library version
// has been loaded
bool ${typeName}_${SHA1sum}()
void ${typeName}_${SHA1sum}(bool load)
{
return true;
if (load)
{
// code that can be explicitly executed after loading
}
else
{
// code that can be explicitly executed before unloading
}
}
}