mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -12,7 +12,8 @@ use std::os::raw::c_void;
|
|||
/// objects by hand in code.
|
||||
#[allow(unsafe_code)]
|
||||
pub unsafe fn malloc_size_of_including_raw_self<T: MallocSizeOf>(
|
||||
ops: &mut MallocSizeOfOps, obj: *const c_void) -> usize
|
||||
{
|
||||
ops: &mut MallocSizeOfOps,
|
||||
obj: *const c_void,
|
||||
) -> usize {
|
||||
ops.malloc_size_of(obj) + (*(obj as *const T)).size_of(ops)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue