All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -66,18 +66,24 @@ public:
Module()
: Py::ExtensionModule<Module>("Web")
{
add_varargs_method("startServer",
&Module::startServer,
"startServer(address=127.0.0.1,port=0) -- Start a server.");
add_varargs_method("waitForConnection",
&Module::waitForConnection,
"waitForConnection(address=127.0.0.1,port=0,timeout=0)\n"
"Start a server, wait for connection and close server.\n"
"Its use is disadvised in a the GUI version, since it will\n"
"stop responding until the function returns.");
add_varargs_method("registerServerFirewall",
&Module::registerServerFirewall,
"registerServerFirewall(callable(string)) -- Register a firewall.");
add_varargs_method(
"startServer",
&Module::startServer,
"startServer(address=127.0.0.1,port=0) -- Start a server."
);
add_varargs_method(
"waitForConnection",
&Module::waitForConnection,
"waitForConnection(address=127.0.0.1,port=0,timeout=0)\n"
"Start a server, wait for connection and close server.\n"
"Its use is disadvised in a the GUI version, since it will\n"
"stop responding until the function returns."
);
add_varargs_method(
"registerServerFirewall",
&Module::registerServerFirewall,
"registerServerFirewall(callable(string)) -- Register a firewall."
);
initialize("This module is the Web module."); // register with Python
}

View File

@@ -25,25 +25,25 @@
#include <FCGlobal.h>
#ifndef WEB_GLOBAL_H
#define WEB_GLOBAL_H
# define WEB_GLOBAL_H
// Web
#ifndef WebExport
#ifdef Web_EXPORTS
#define WebExport FREECAD_DECL_EXPORT
#else
#define WebExport FREECAD_DECL_IMPORT
#endif
#endif
# ifndef WebExport
# ifdef Web_EXPORTS
# define WebExport FREECAD_DECL_EXPORT
# else
# define WebExport FREECAD_DECL_IMPORT
# endif
# endif
// WebGui
#ifndef WebGuiExport
#ifdef WebGui_EXPORTS
#define WebGuiExport FREECAD_DECL_EXPORT
#else
#define WebGuiExport FREECAD_DECL_IMPORT
#endif
#endif
# ifndef WebGuiExport
# ifdef WebGui_EXPORTS
# define WebGuiExport FREECAD_DECL_EXPORT
# else
# define WebGuiExport FREECAD_DECL_IMPORT
# endif
# endif
#endif // WEB_GLOBAL_H