1.描述符分配和释放函数修改为内联。

This commit is contained in:
MacRsh
2024-01-21 18:06:49 +08:00
parent 27014a95d4
commit 391fe2681e

View File

@@ -594,7 +594,7 @@ static struct mr_desc
#define MR_DESC_CHECK(desc)
#endif /* MR_USING_DESC_CHECK */
static int desc_allocate(const char *path)
MR_INLINE int desc_allocate(const char *path)
{
int desc = -1;
@@ -626,7 +626,7 @@ static int desc_allocate(const char *path)
return desc;
}
static void desc_free(int desc)
MR_INLINE void desc_free(int desc)
{
if (desc >= 0 && desc < MR_CFG_DESC_MAX)
{