当我使用lua_pcall
或var obj = {
bakery1: {
small: {
name: "Small cookie",
price: 0.75;
}
large: {
name: "Large cookie",
price: 3.00;
}
}
bakery2: {
small: {
name: "Small cookie",
price: 1.00;
}
large: {
name: "Large cookie",
price: 4.00;
}
}
};
时,除了运行lua chunk之外,它还会从堆栈中弹出块。有什么办法可以在保持块的同时运行块吗?