repo.or.cz
/
fail.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ABF: read and write std::vector and std::set.
[fail.git]
/
lua
/
state.cpp
blob
d448dc4975da0356c34c230cc32caa5161c8353f
1
#include
"state.h"
2
#include <stdlib.h>
3
4
void
*
awful
::
LuaState
::
LuaAlloc
(
void
*
/*ud*/
,
void
*
ptr
,
size_t
/*osize*/
,
size_t
nsize
)
5
{
6
if
(
nsize
)
7
return
realloc
(
ptr
,
nsize
);
8
9
free
(
ptr
);
10
return
NULL
;
11
}