chore: 调整项目演示程序目录结构

This commit is contained in:
Del Wang
2025-04-26 21:46:32 +08:00
parent 39febdfe57
commit c3cac9b2b4
54 changed files with 25 additions and 23 deletions
+14
View File
@@ -0,0 +1,14 @@
/// 提供一个简便的日志记录宏,将消息传递给 Python 端
///
/// # 示例
///
/// ```
/// pylog!("这是一条日志消息");
/// pylog!("带有变量的日志: {}", variable);
/// ```
#[macro_export]
macro_rules! pylog {
($($arg:tt)*) => {
crate::python::PythonManager::instance().log(format!($($arg)*));
};
}