fix whitespace and typo
This commit is contained in:
@ -27,12 +27,12 @@
|
|||||||
|
|
||||||
namespace LAMMPS_NS
|
namespace LAMMPS_NS
|
||||||
{
|
{
|
||||||
|
|
||||||
void lammpsplugin_load(const char *file, void *ptr)
|
void lammpsplugin_load(const char *file, void *ptr)
|
||||||
{
|
{
|
||||||
LAMMPS *lmp = (LAMMPS *)ptr;
|
LAMMPS *lmp = (LAMMPS *)ptr;
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
utils::logmsg(lmp,"Loading of plugins not supported on Windows yet\n");
|
utils::logmesg(lmp,"Loading of plugins not supported on Windows yet\n");
|
||||||
#else
|
#else
|
||||||
void *dso = dlopen(file,RTLD_NOW);
|
void *dso = dlopen(file,RTLD_NOW);
|
||||||
if (dso == nullptr) {
|
if (dso == nullptr) {
|
||||||
@ -71,6 +71,3 @@ namespace LAMMPS_NS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef void *(lammpsplugin_factory)(void *);
|
typedef void *(lammpsplugin_factory)(void *);
|
||||||
typedef void (*lammpsplugin_initfunc)(void *);
|
typedef void (*lammpsplugin_initfunc)(void *);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user