mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
30 lines
548 B
C
30 lines
548 B
C
#ifndef LUA_SHORT_STRING_TABLE_H
|
|
#define LUA_SHORT_STRING_TABLE_H
|
|
|
|
#include "lstring.h"
|
|
|
|
// If you use modified lua, this macro would be defined in lstring.h
|
|
#ifndef ENABLE_SHORT_STRING_TABLE
|
|
|
|
struct ssm_info {
|
|
int total;
|
|
int longest;
|
|
int slots;
|
|
size_t size;
|
|
double variance;
|
|
};
|
|
|
|
struct ssm_collect {
|
|
void *key;
|
|
int n;
|
|
};
|
|
|
|
static inline void luaS_initssm();
|
|
static inline void luaS_exitssm();
|
|
static inline void luaS_infossm(struct ssm_info *info) {}
|
|
static inline int luaS_collectssm(struct ssm_collect *info) { return 0; }
|
|
|
|
#endif
|
|
|
|
#endif
|