Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
222b04f6
Commit
222b04f6
authored
Sep 17, 2002
by
Ken Martin
Browse files
added Destructor
parent
0a2f6c87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Tests/LoadCommand/CMakeCommands/cmTestCommand.c
View file @
222b04f6
...
...
@@ -45,6 +45,15 @@ void FinalPass(void *inf, void *mf)
}
}
void
Destructor
(
void
*
inf
)
{
cmLoadedCommandInfo
*
info
=
(
cmLoadedCommandInfo
*
)
inf
;
// get our client data from initial pass
cmVTKWrapTclData
*
cdata
=
(
cmVTKWrapTclData
*
)
info
->
CAPI
->
GetClientData
(
info
);
free
(
cdata
);
}
CM_PLUGIN_EXPORT
const
char
*
cmGetName
()
{
return
"CMAKE_TEST_COMMAND"
;
...
...
@@ -54,6 +63,7 @@ void CM_PLUGIN_EXPORT cmInitializeCommand(cmLoadedCommandInfo *info)
{
info
->
InitialPass
=
InitialPass
;
info
->
FinalPass
=
FinalPass
;
info
->
Destructor
=
Destructor
;
info
->
m_Inherited
=
0
;
}
...
...
Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
View file @
222b04f6
...
...
@@ -45,6 +45,15 @@ void FinalPass(void *inf, void *mf)
}
}
void
Destructor
(
void
*
inf
)
{
cmLoadedCommandInfo
*
info
=
(
cmLoadedCommandInfo
*
)
inf
;
// get our client data from initial pass
cmVTKWrapTclData
*
cdata
=
(
cmVTKWrapTclData
*
)
info
->
CAPI
->
GetClientData
(
info
);
free
(
cdata
);
}
CM_PLUGIN_EXPORT
const
char
*
cmGetName
()
{
return
"CMAKE_TEST_COMMAND"
;
...
...
@@ -54,6 +63,7 @@ void CM_PLUGIN_EXPORT cmInitializeCommand(cmLoadedCommandInfo *info)
{
info
->
InitialPass
=
InitialPass
;
info
->
FinalPass
=
FinalPass
;
info
->
Destructor
=
Destructor
;
info
->
m_Inherited
=
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment