brintos

brintos / llvm-project-archived public Read only

0
0
Text · 974 B · 6148074 Raw
34 lines · python
1import side_effect2 3 4def useless_function(first, second):5    print("I have the wrong number of arguments.")6 7 8def function(frame, bp_loc, dict):9    side_effect.bktptcmd = "function was here"10 11 12def another_function(frame, bp_loc, extra_args, dict):13    se_value = extra_args.GetValueForKey("side_effect")14    se_string = se_value.GetStringValue(100)15    side_effect.fancy = se_string16 17 18def a_third_function(frame, bp_loc, extra_args, dict):19    se_value = extra_args.GetValueForKey("side_effect")20    se_string = se_value.GetStringValue(100)21    side_effect.fancier = se_string22 23 24def a_list_function(frame, bp_loc, extra_args, dict):25    se_value = extra_args.GetValueForKey("side_effect")26    se_string = se_value.GetStringValue(100)27    side_effect.from_list = se_string28 29 30def empty_extra_args(frame, bp_loc, extra_args, dict):31    if extra_args.IsValid():32        side_effect.not_so_fancy = "Extra args should not be valid"33    side_effect.not_so_fancy = "Not so fancy"34