More work on making intellisense work

This commit is contained in:
2025-06-16 21:32:40 -04:00
parent 80ff7d7d92
commit be45f55222
9 changed files with 35 additions and 25 deletions

View File

@@ -219,7 +219,7 @@ enum DrvAction {
PLAY_RELEASE,
};
inline static const char *action_string(DrvAction act) {
[[maybe_unused]] inline static const char *action_string(DrvAction act) {
switch(act) {
case PLAY_INITIALIZE: return "PLAY_INITIALIZE";
case PLAY_CLEAR_NEW_OUTGOING: return "PLAY_CLEAR_NEW_OUTGOING";
@@ -233,6 +233,7 @@ inline static const char *action_string(DrvAction act) {
default: return "unknown";
}
}
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//

View File

@@ -169,7 +169,6 @@ namespace eng {
void *operator new(size_t size)
{
assert(false && "not supposed to 'new' this class");
return NULL;
}
void operator delete(void *p, size_t size)
@@ -180,7 +179,6 @@ namespace eng {
void *operator new[](size_t size)
{
assert(false && "not supposed to 'new' this class");
return NULL;
}
void operator delete[](void *p, size_t size)

View File

@@ -15,6 +15,9 @@
#ifndef ENGINEWRAPPER_H
#define ENGINEWRAPPER_H
#include <cstdint>
#include <cstddef>
#define DRV_MAX_CHAN 256
#define DRV_MAX_LISTEN_PORTS 256
#define DRV_ERRMSG_SIZE 8192

View File

@@ -687,7 +687,7 @@ HttpServerResponse World::http_serve(const HttpParser &request) {
}
// Get the name of the desired function.
std::string_view orig_fn = request.first_path_component("index");
eng::string orig_fn = request.first_path_component("index");
eng::string lua_fn = HttpParser::to_lua_identifier(orig_fn);
if (lua_fn.empty()) {
response.fail(404, util::ss("cannot convert to lua function name: ", orig_fn));

View File

@@ -9,8 +9,7 @@
namespace eng {
template<class C, class T=std::char_traits<C>>
class basic_ostringstream : public std::basic_ostringstream<C, T, eng::allocator<C>>, public eng::opnew {
using underlying = std::basic_ostringstream<C, T, eng::allocator<C>>;
using underlying::basic_ostringstream;
using std::basic_ostringstream<C, T, eng::allocator<C>>::basic_ostringstream;
};
//template<class C, class T=std::char_traits<C>>
//using basic_stringbuf = std::basic_stringbuf<C, T, eng::allocator<C>>;