iphreeqc/module_output.cpp
Scott R Charlton 803eda0a67 passes all tests on win32; before changing to multiple instances
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/class@4201 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-04-02 00:14:16 +00:00

23 lines
476 B
C++

#include "module_files.h"
#include "IPhreeqc.hpp"
#if defined(R_SO)
#include "output.inl"
#else
// COMMENT: {3/25/2010 12:36:24 PM}#include "phreeqcpp/phreeqc/output.c"
#endif
int IPhreeqc::output_isopen(const int type)
{
size_t i;
int isopen;
for (i = 0; i < this->count_output_callback; ++i)
{
isopen = (this->output_callbacks[i].callback)(ACTION_ISOPEN, type, NULL, CONTINUE, this->output_callbacks[i].cookie, NULL, NULL);
if (isopen) return 1;
}
return 0;
}