| // This may look like C code, but it is really -*- C++ -*- |
| // |
| // Copyright Bob Friesenhahn, 1999, 2002, 2003 |
| // |
| // Simple C++ function wrappers for ImageMagick equivalents |
| // |
| |
| #define MAGICKCORE_IMPLEMENTATION 1 |
| #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 |
| |
| #include "Magick++/Include.h" |
| #include <string> |
| |
| using namespace std; |
| |
| #include "Magick++/Functions.h" |
| |
| // Clone C++ string as allocated C string, de-allocating any existing string |
| void Magick::CloneString( char **destination_, const std::string &source_ ) |
| { |
| MagickCore::CloneString( destination_, source_.c_str() ); |
| } |